package cn.jhh.base.exception;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

/**
 * @author hmxchen
 * @version 1.0
 * @description TODO
 * @date 2023/1/30 11:10
 */
@AllArgsConstructor
@Data
public class RestErrorResponse implements Serializable {
    private Integer code;
    private String errMessage;

    public RestErrorResponse(String errMessage){
        this.code = 500;
        this.errMessage = errMessage;
    }

}
